export default function () {
  // const login = `${localhost}/login`
  // const regist = `${localhost}/regist`
  // const login = localhost + '/src/json/login.json'\
  const baseURL = 'http://127.0.0.1:3000/'
  const login = '/login'
  // const regist = '/src/json/regist.json'
  const regist = '/regist'
  // const loginJWT = '/src/json/login.json'
  const loginJWT = '/loginJWT'

  // 推荐文章数据
  // const getArticle = '/src/json/articleData.json'
  const getArticle = '/article/hot'
  // 指定id的文章数据
  // const article = '/src/json/article0.json'
  const article = '/article/article'
  // 获取评论数据
  const commnets = '/article/comments'
  // 收藏文章
  const articleLike = '/article/like'
  // 推荐专栏数据
  // const getColumn = '/src/json/columnData.json'
  const getColumn = '/column/hot'
  // 指定id专栏数据
  const column = '/column/column'
  // 收藏专栏
  const columnLike = '/column/like'

  // 订阅
  // 订阅专栏

  // 订阅的用户信息
  const searchFollowigUsers = '/followig/userList'
  // 订阅的专栏数据
  const SearchFollowigColumns = '/followig/columnList'

  // 订阅的用户的文章，指定 用户id 检索文章
  const followigUsersArticle = '/src/json/followigUsersArticle.json'
  // 订阅的专栏下的文章 指定所属专栏id 检索文章
  // const followigColumnsArticle = '/src/json/followigColumnsArticle.json'
  // 查询指定专栏下的文章
  const followigColumnsArticle = '/article/columnArticles'

  // 发送评论
  // const sendComment = '/src/json/comment.json'
  const sendComment = '/article/sendComment'

  // 点赞评论
  const sendLike = '/article/commentAcc'

  // 历史 指定用户id 获取文章的id记录
  const idsTohistory = '/article/history'

  // 好友列表
  const messageUsers = '/msg/userList'
  // 消息记录
  const messageLogs = '/msg/msgLogs'
  // 发送消息
  const postMessageToUser = '/msg/sendMsg'
  //
  const imgToUrlPath = '/msg/imgToUrl'

  // 后台管理，编辑
  // const editColumns = '/src/json/myColumns.json'
  // 获取自己创建的专栏列表
  const editColumns = '/edit/data'

  // const editMember = '/src/json/columnsMember.json'
  const editMember = '/edit/member'

  // const editArticle = '/src/json/myArticle.json'
  const editArticle = '/edit/myArticles'

  // 提交修改
  // const postColumnData = '/src/json/postColumnChange.json'
  // 创建专栏
  const postColumnData = '/edit/update'

  // const postUserInfoData = '/src/json/postUserInfoChange.json'
  const postUserInfoData = '/edit/info'

  // userInfo
  const userInfo = '/user/user'
  // 订阅用户
  const likeUser = '/user/like'
  // 主页搜索
  const search = '/src/json/search.json'
  // 保存文件
  // const saveArticle = '/src/json/saveArticle.json'
  const workSelect = '/work/tag'
  const saveArticle = '/work/publish'
  const getSaveArticle = '/work/text'

  return {
    baseURL,
    login,
    loginJWT,
    regist,
    getArticle,
    article,
    articleLike,
    commnets,
    getColumn,
    column,
    columnLike,
    searchFollowigUsers,
    SearchFollowigColumns,
    followigUsersArticle,
    followigColumnsArticle,
    sendComment,
    sendLike,
    idsTohistory,
    messageUsers,
    messageLogs,
    postMessageToUser,
    imgToUrlPath,
    editColumns,
    editMember,
    editArticle,
    postColumnData,
    postUserInfoData,
    userInfo,
    likeUser,
    search,
    workSelect,
    saveArticle,
    getSaveArticle
  }
}
